package com.kyh.enume;

public class AddressEnum {
	/**
	 * 类目等级
	 */
	public static enum IsDefault {
		DEFAULT("默认", 1), NOT_DEFAULT("非默认", 0);
		public String name;
		public Integer value;

		private IsDefault(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (IsDefault e : IsDefault.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
